package com.jun.pojo.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@TableName("sys_admin")
public class SysAdmin implements  Serializable {

  @TableId(type = IdType.AUTO, value = "admin_id")
  private Integer adminId;

  @TableField("admin_username")
  @NotBlank(message = "用户名不能为空")
  private String adminUsername;

  @TableField("admin_password")
  @NotBlank(message = "密码不能为空")
  private String adminPassword;

  private Boolean enable;
}
